import { Body, Controller, Post, UseGuards } from '@nestjs/common';
import { SyncService } from './index.service';
import { JwtAuthGuard } from '@/authGuard/jwtAuthGuard';
@Controller()
export class SyncController {
  constructor(private readonly syncService: SyncService) {}
  @Post('syncUser')
  async syncUser(@Body() loginParams) {
    return this.syncService.syncUser(loginParams);
  }

  @Post('searchResume')
  async searchResume(@Body() param) {
    return this.syncService.searchResume(param);
  }

  @UseGuards(JwtAuthGuard)
  @Post('syncResumeById')
  async syncResumeById(@Body() param) {
    return this.syncService.syncResumeById(param);
  }
}
